<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>商品列表</title>
</head>
<body>
    <h1>我是商品列表</h1>
    <!-- <% %>表示js代码 <%= title%>表示显示js代码,不能识别标签 <%- title%>表示能够识别标签 -->
    <h3><%= title%></h3>
    <p>我是<%= person.name%>,今年<%=person.age%>岁了</p>
    <% list.forEach(item=>{%>
        <p>id:<%= item.id %>name:<%= item.name %></p>
    <%}) %>
    <br/>
    <%= htmlTags%>
    <hr/>
    <%- htmlTags%>
</body>
</html>
<!-- http://127.0.0.1:7001/products -->
<!-- 启动项目npm run dev -->